package com.jcompressor.utils;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ResourceUtils {
	
	private static final Logger LOGGER = LoggerFactory.getLogger(ResourceUtils.class);
	
	public static Long generateUnixDateTime() {
		final Calendar calendar = new GregorianCalendar();
		calendar.setTime(new Date());
		return calendar.getTimeInMillis();
	}
	
	public static String generateUnixDateTimeStr() {
		return Long.toString(ResourceUtils.generateUnixDateTime());
	}
	
}